package designmode.simplefactory;

public abstract class Pizza {
    String name;
    abstract void prepare();
    void bake(){
        System.out.println(name+"烘烤");
    }
}
class GreekPizza extends Pizza{

    @Override
    void prepare() {
        System.out.println("GreekPizza");
    }
}